package cn.wolfcode.service.impl;


import cn.wolfcode.domain.Business;
import cn.wolfcode.mapper.BusinessReportMapper;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.service.IBusinessReportService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
@Service
public class BusinessReportServiceImpl implements IBusinessReportService {
    @Autowired
    private BusinessReportMapper businessReportMapper;

    @Override
    public PageInfo<HashMap> query(QueryObject qo) {
        PageHelper.startPage(qo.getCurrentPage(),qo.getPageSize());
        return new PageInfo<>(businessReportMapper.queryList(qo));
    }
}
